package com.itqf.yun.controller;

import com.itqf.yun.dto.InventoryDto;
import com.itqf.yun.service.InventoryService;
import com.itqf.yun.service.ProductService;
import com.itqf.yun.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@CrossOrigin("*")
@RequestMapping("inventory")

public class InventoryController {

    @Autowired
    private InventoryService inventoryService;
    /**
     * 展示
     * @return
     */
    @GetMapping("list")
    public Object list(){
        R r = inventoryService.list();

        return r;
    }
}
